package com.novel.authorization.staff.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.novel.authorization.staff.entity.NfEmail;

import java.util.List;

/**
 * 发邮件设置
 *
 * @author 樊温军
 * @date Wed May 07 10:50:56 CST 2025
 */
public interface NfEmailService extends IService<NfEmail> {
    /**
     * 根据条件获取发邮件设置列表
     *
     * @param nfEmail 条件
     * @return List<NfEmail>
     */
    List<NfEmail> getNfEmailList(NfEmail nfEmail);

    /**
     * 分页查询
     *
     * @param page    分页对象
     * @param nfEmail 条件
     * @return IPage<NfEmail>
     */
    IPage<NfEmail> getPage(Page<NfEmail> page, NfEmail nfEmail);

    /**
     * 根据发邮件设置标识获取发邮件设置
     *
     * @param id 发邮件设置主键
     * @return NfEmail
     */
    NfEmail queryById(Long id);

    /**
     * 保存发邮件设置
     *
     * @param nfEmail 发邮件设置对象
     * @return Long
     */
    Long saveOneNfEmail(NfEmail nfEmail);

    /**
     * 删除发邮件设置
     *
     * @param id 发邮件设置标识
     */
    void delById(Long id);
}
